	<?php get_header();?>
  <div id="main">								
		<div id="maintext">
	   <h2><?php echo __('Search Results for ','centita');?>"<?php echo $s;?>"</h2>
      <?php $blogtext = (get_option('centita_blogtext')) ? get_option('centita_blogtext') : 75;?>
      <?php while ( have_posts() ) : the_post();?>
        <div class="blog-post">                                    
          <h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
          <div class="blog-posted">
     		    <span class="posted-detail"><?php the_time('F d, Y');?>&nbsp; | &nbsp; <?php the_category(',');?> &nbsp; | &nbsp; <?php the_author_posts_link();?>&nbsp; | &nbsp; <?php comments_popup_link(__('0 Comment','centita'),__('1 Comment','centita'),__('% Comments','centita'));?></span>                                        
          </div>
          <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) {?>			
          <img src="<?php echo get_template_directory_uri();?>/timthumb.php?src=<?php echo thumb_url();?>&amp;h=150&amp;w=200&amp;zc=1" alt="" class="imgleft" />
          <?php } ?>
            <p><?php echo excerpt($blogtext);?></p>
          	<span class="read-more"><a href="<?php the_permalink();?>"><img src="<?php echo get_template_directory_uri();?>/images/read-more.gif" alt="" /></a></span>
            <div class="clr"></div>                     
        </div><!-- end of post -->
        <?php endwhile;?>
				<?php 
				  if (function_exists('wp_pagenavi')) :
				    wp_pagenavi();
				  else : 
				?>
      		<div class="navigation">
      			<div class="alignleft"><?php next_posts_link(__('&laquo; Previous Entries','centita')) ?></div>
      			<div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;','centita')) ?></div>
      			<div class="clear"></div>
      		</div>
        <?php endif;?>        		    
       </div><!-- end of maintext -->
		</div><!-- end of main -->
		<?php get_sidebar();?>
		<?php get_footer();?>